<%= form_for(@user) do |f| %>
    <% if @user.errors.any? %>
        <div class="fberrorbox" id="error_explanation">
          <h2><%= pluralize(@user.errors.count, "error") %> prohibited this user from being saved:</h2>

          <ul>
            <% @user.errors.full_messages.each do |msg| %>
                <li><%= msg %></li>
            <% end %>
          </ul>
        </div>
    <% end %>

    <div class="fbbluebox">
      <div class="fbgreybox"><h2>Enter user Details</h2></div>
      <div class="field">
        <%= f.label :name %><br />
        <%= f.text_field :name, :size => 50 %>
      </div>
      <div class="field">
        <%= f.label :user_password, 'Password' %><br />
        <%= f.password_field :password, :size => 50 %>
      </div>
      <div class="field">
        <%= f.label :user_password_confirmation, 'Confirm' %><br />
        <%= f.password_field :password_confirmation, :size => 50 %>
      </div>
    </div>
    <br />

    <div class="fbgreyboxbuttom">
      <div class="actions">
        <%= f.submit %>
      </div>
    </div><br />
<% end %>
